package com.yuju.vo.hotel;



import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.yuju.common.BaseVO;
import com.yuju.common.fileld.validator.Rule.NonNull;

/**
 * 
 * 类名：GoodVO  <br />
 *
 * 功能：
 *
 * @author : zhousc <br />
 * @Date : 2017年11月30日 上午9:08:42  <br />
 * @version : 1.1 <br />
 */
public class GoodVO extends BaseVO implements Serializable {
	// 当前页码
	@NonNull(message = "页数不能为空", serviceLine = "pager")
	private Integer page;
	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer pageSize;
    /**
     *  主键。存储UUID，由应用生成。,所属表字段为hot_good.id
     */
	@NonNull(message = "ID不能为空", serviceLine = "update,del,get")
    private String id;

    /**
     *  名称。,所属表字段为hot_good.name
     */
	@NonNull(message = "名称不能为空", serviceLine = "update,save")
    private String name;
    /**
     * 名称模糊查询
     */
    private String myLike_name;
    /**
     *  条形码。,所属表字段为hot_good.bar_code
     */
    private String barCode;

    /**
     *  商品单位。,所属表字段为hot_good.unit
     */
    private String unit;

    /**
     *  商品分类ID。外键，引用商品分类（grp_good_type）的主键（id）。,所属表字段为hot_good.good_type_id
     */
    private String goodTypeId;

    /**
     *  价格。,所属表字段为hot_good.ref_price
     */
    private BigDecimal refPrice;

    /**
     *  内部价。,所属表字段为hot_good.in_price
     */
    private BigDecimal inPrice;

    /**
     *  最高库存。,所属表字段为hot_good.max_num
     */
    private Integer maxNum;

    /**
     *  最低库存。,所属表字段为hot_good.min_num
     */
    private Integer minNum;

    /**
     *  销售点。,所属表字段为hot_good.sale_type
     */
    private Byte saleType;

    /**
     *  冲调方式。,所属表字段为hot_good.reduce_type
     */
    private Byte reduceType;

    /**
     *  是否可售。1表示可售，2表示不可售。,所属表字段为hot_good.is_sale
     */
    private Byte isSale;

    /**
     *  是否可议价。1表示可以议价，2表示不可议价。,所属表字段为hot_good.is_price_consult
     */
    private Byte isPriceConsult;

    /**
     *  是否可零库存销售。1表示可以，2表示不可以。,所属表字段为hot_good.is_zero_sale
     */
    private Byte isZeroSale;

    /**
     *  创建时间。,所属表字段为hot_good.gmt_create
     */
    private Date gmtCreate;

    /**
     *  修改时间。,所属表字段为hot_good.gmt_modified
     */
    private Date gmtModified;

    /**
     *  所属酒店。外键，引用酒店信息表（grp_hotel）的主键（id）。,所属表字段为hot_good.hotel_id
     */
    @NonNull(message = "分店ID不能为空", serviceLine = "update,save")
    private String hotelId;

    /**
     *  是否逻辑删除。1表示已逻辑删除，2表示未逻辑删除，默认为2。,所属表字段为hot_good.is_deleted
     */
    private Byte isDeleted;

    /**
     *  所属集团。外键，引用集团信息表（grp_group）的主键（id）。,所属表字段为hot_good.group_id
     */
    @NonNull(message = "集团ID不能为空", serviceLine = "update,save")
    private String groupId;

    private static final long serialVersionUID = 1L;

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMyLike_name() {
		return myLike_name;
	}

	public void setMyLike_name(String myLike_name) {
		this.myLike_name = myLike_name;
	}

	public String getBarCode() {
		return barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getGoodTypeId() {
		return goodTypeId;
	}

	public void setGoodTypeId(String goodTypeId) {
		this.goodTypeId = goodTypeId;
	}

	public BigDecimal getRefPrice() {
		return refPrice;
	}

	public void setRefPrice(BigDecimal refPrice) {
		this.refPrice = refPrice;
	}

	public BigDecimal getInPrice() {
		return inPrice;
	}

	public void setInPrice(BigDecimal inPrice) {
		this.inPrice = inPrice;
	}

	public Integer getMaxNum() {
		return maxNum;
	}

	public void setMaxNum(Integer maxNum) {
		this.maxNum = maxNum;
	}

	public Integer getMinNum() {
		return minNum;
	}

	public void setMinNum(Integer minNum) {
		this.minNum = minNum;
	}

	public Byte getSaleType() {
		return saleType;
	}

	public void setSaleType(Byte saleType) {
		this.saleType = saleType;
	}

	public Byte getReduceType() {
		return reduceType;
	}

	public void setReduceType(Byte reduceType) {
		this.reduceType = reduceType;
	}

	public Byte getIsSale() {
		return isSale;
	}

	public void setIsSale(Byte isSale) {
		this.isSale = isSale;
	}

	public Byte getIsPriceConsult() {
		return isPriceConsult;
	}

	public void setIsPriceConsult(Byte isPriceConsult) {
		this.isPriceConsult = isPriceConsult;
	}

	public Byte getIsZeroSale() {
		return isZeroSale;
	}

	public void setIsZeroSale(Byte isZeroSale) {
		this.isZeroSale = isZeroSale;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getHotelId() {
		return hotelId;
	}

	public void setHotelId(String hotelId) {
		this.hotelId = hotelId;
	}

	public Byte getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Byte isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public GoodVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public GoodVO(Integer page, Integer pageSize, String id, String name, String myLike_name, String barCode,
			String unit, String goodTypeId, BigDecimal refPrice, BigDecimal inPrice, Integer maxNum, Integer minNum,
			Byte saleType, Byte reduceType, Byte isSale, Byte isPriceConsult, Byte isZeroSale, Date gmtCreate,
			Date gmtModified, String hotelId, Byte isDeleted, String groupId) {
		super();
		this.page = page;
		this.pageSize = pageSize;
		this.id = id;
		this.name = name;
		this.myLike_name = myLike_name;
		this.barCode = barCode;
		this.unit = unit;
		this.goodTypeId = goodTypeId;
		this.refPrice = refPrice;
		this.inPrice = inPrice;
		this.maxNum = maxNum;
		this.minNum = minNum;
		this.saleType = saleType;
		this.reduceType = reduceType;
		this.isSale = isSale;
		this.isPriceConsult = isPriceConsult;
		this.isZeroSale = isZeroSale;
		this.gmtCreate = gmtCreate;
		this.gmtModified = gmtModified;
		this.hotelId = hotelId;
		this.isDeleted = isDeleted;
		this.groupId = groupId;
	}
    
    
}